import request from '@/utils/request'

// 查询报验
export function list(params) {
  return request({
    url: '/gcxt/pc/inspection/page',
    method: 'get',
    params: params
  })
}
export function listBe(params) {
  return request({
    url: '/gcxt/beInspection/page',
    method: 'get',
    params: params
  })
}

// 报验详情
export function getRecord(params) {
  return request({
    url: '/gcxt/pc/inspection/get',
    method: 'get',
    params: params
  })
}
// 报验详情
export function getRecordBe(params) {
  return request({
    url: '/gcxt/beInspection/detail',
    method: 'get',
    params: params
  })
}

// 撤销报验
export function revocation(params) {
  return request({
    url: '/gcxt/pc/inspection/revocation',
    method: 'post',
    params: params
  })
}
// 查询报验撤销原因列表
export function listCancelReason(query) {
  return request({
    url: '/gcxt/cancelreason/list',
    method: 'get',
    params: query
  })
}

// 查询报验的房间列表
export function getInspectionRoom(query) {
  return request({
    url: '/gcxt/pc/inspection/getInspectionRoom',
    method: 'get',
    params: query
  })
}

// 查询报验的桩基列表
export function getInspectionPile(query) {
  return request({
    url: '/gcxt/pc/inspection/getInspectionPile',
    method: 'get',
    params: query
  })
}

// 查询报验的桩基列表
export function getInspectionPublic(query) {
  return request({
    url: '/gcxt/pc/inspection/getInspectionPublic',
    method: 'get',
    params: query
  })
}

// 查询撤销报验列表
export function getCancelInspectList(query) {
  return request({
    url: '/gcxt/pc/inspection/getCancelInspectList',
    method: 'get',
    params: query
  })
}

// 恢复撤销的报验
export function recoverInspection(query) {
  return request({
    url: '/gcxt/pc/inspection/recoverInspection',
    method: 'get',
    timeout: 0,
    params: query
  })
}
